import { RouteRecordRaw } from 'vue-router'

export const staticRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'home',
    redirect: '/login',
    meta: {
      hidden: true
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/page/Login/index.vue'),
    meta: {
      title: '登录页面',
      hidden: true
    }
  },
  {
    path: '/workspace',
    component: () => import('@/views/Layout.vue'),
    meta: { title: '工作台', hidden: false },
    children: [
      {
        // 修改前: path: '/orderCenter'
        path: '/orderCenter', // 相对路径
        name: 'orderCenter',
        redirect: '/orderQuery',
        meta: { title: '订单中心', hidden: false },
        children: [
          {
            // 修改前: path: '/orderQuery'
            path: '/orderQuery', // 相对路径
            name: 'orderQuery',
            component: () => import(/*webpackChunkName: "orderQuery"*/ '@/page/orderCenter/orderQuery/index.vue'),
            meta: { title: '订单查询', hidden: false }
          },
          {
            path: '/orderDetail', // 相对路径
            name: 'orderDetail',
            component: () => import(/*webpackChunkName: "orderDetail"*/ '@/page/orderCenter/orderDetail/index.vue'),
            meta: { title: '订单详情', hidden: false }
          },
          {
            path: '/orderAdd', // 相对路径
            name: 'orderAdd',
            component: () => import(/*webpackChunkName: "orderAdd"*/ '@/page/orderCenter/orderAdd/index.vue'),
            meta: { title: '订单新增', hidden: false }
          }
        ]
      },
      {
        path: '/serviceManagement', // 相对路径
        name: 'serviceManagement',
        redirect: '/serviceQuery',
        meta: { title: '服务费管理', hidden: false },
        children: [
          {
            path: '/serviceQuery', // 相对路径
            name: 'serviceQuery',
            component: () => import(/*webpackChunkName: "serviceQuery"*/ '@/page/serviceManagement/serviceQuery/index.vue'),
            meta: { title: '服务费查询', hidden: false }
          },
          {
            path: '/serviceChange', // 相对路径
            name: 'serviceChange',
            component: () => import(/*webpackChunkName: "serviceChange"*/ '@/page/serviceManagement/serviceChange/index.vue'),
            meta: { title: '服务费修改', hidden: false }
          },
          {
            path: '/serviceDetail', // 相对路径
            name: 'serviceDetail',
            component: () => import(/*webpackChunkName: "serviceDetail"*/ '@/page/serviceManagement/serviceDetail/index.vue'),
            meta: { title: '服务费详情', hidden: false }
          }
        ]
      },
      {
        path: '/assetManagement', // 相对路径
        name: 'assetManagement',
        redirect: '/siteAdd',
        meta: { title: '资产管理', hidden: false },
        children: [
          {
            path: '/siteAdd', // 相对路径
            name: 'siteAdd',
            component: () => import(/*webpackChunkName: "siteAdd"*/ '@/page/assetManagement/siteAdd/index.vue'),
            meta: { title: '站点新增', hidden: false }
          },
          {
            path: '/siteChange', // 相对路径
            name: 'siteChange',
            component: () => import(/*webpackChunkName: "siteChange"*/ '@/page/assetManagement/siteChange/index.vue'),
            meta: { title: '站点修改', hidden: false }
          },
          {
            path: '/siteDetail', // 相对路径
            name: 'siteDetail',
            component: () => import(/*webpackChunkName: "siteDetail"*/ '@/page/assetManagement/siteDetail/index.vue'),
            meta: { title: '站点详情', hidden: false }
          },
          {
            path: '/siteQuery', // 相对路径
            name: 'siteQuery',
            component: () => import(/*webpackChunkName: "siteQuery"*/ '@/page/assetManagement/siteQuery/index.vue'),
            meta: { title: '站点查询', hidden: false }
          }
        ]
      },
      {
        path: '/customerCenter', // 相对路径
        name: 'customerCenter',
        redirect: '/siteAdd',
        meta: { title: '客户管理', hidden: false },
        children: [
          {
            path: '/customerAdd', // 相对路径
            name: 'customerAdd',
            component: () => import(/*webpackChunkName: "customerAdd"*/ '@/page/customerCenter/csutomerAdd/index.vue'),
            meta: { title: '客户新增', hidden: false }
          },

          {
            path: '/customerChange', // 相对路径
            name: 'customerChange',
            component: () => import(/*webpackChunkName: "customerChange"*/ '@/page/customerCenter/csutomerChange/index.vue'),
            meta: { title: '客户修改', hidden: false }
          },
          {
            path: '/customerDetail', // 相对路径
            name: 'customerDetail',
            component: () => import(/*webpackChunkName: "customerDetail"*/ '@/page/customerCenter/csutomerDetail/index.vue'),
            meta: { title: '客户详情', hidden: false }
          },
          {
            path: '/customerQuery', // 相对路径
            name: 'customerQuery',
            component: () => import(/*webpackChunkName: "customerQuery"*/ '@/page/customerCenter/csutomerQuery/index.vue'),
            meta: { title: '客户查询', hidden: false }
          }
        ]
      },
      {
        // 修改前: path: '/orderCenter'
        path: '/systemAnnouncement', // 相对路径
        name: 'systemAnnouncement',
        redirect: '/orderQuery',
        meta: { title: '系统公告', hidden: false },
        children: [
          {
            // 修改前: path: '/orderQuery'
            path: '/systemAnnouncementManagement', // 相对路径
            name: 'systemAnnouncementManagement',
            component: () => import(/*webpackChunkName: "systemAnnouncementManagement"*/ '@/page/systemAnnouncement/systemAnnouncementManagement/index.vue'),
            meta: { title: '系统公告管理', hidden: false }
          },
          {
            path: '/systemAnnouncementChange', // 相对路径
            name: 'systemAnnouncementChange',
            component: () => import(/*webpackChunkName: "systemAnnouncementChange"*/ '@/page/systemAnnouncement/systemAnnouncementChange/index.vue'),
            meta: { title: '系统公告修改', hidden: false }
          },
          {
            path: '/systemAnnouncementDetail', // 相对路径
            name: 'systemAnnouncementDetail',
            component: () => import(/*webpackChunkName: "systemAnnouncementDetail"*/ '@/page/systemAnnouncement/systemAnnouncementDetail/index.vue'),
            meta: { title: '系统公告详情', hidden: false }
          }
        ]
      },
      {
        path: '/personalCenter', // 相对路径
        name: 'personalCenter',
        component: () => import(/*webpackChunkName: "personalCenter"*/ '@/page/personalCenter/index.vue'),
        meta: { title: '个人中心', hidden: false }
      }
    ]
  },
  {
    path: '/404',
    name: 'notFound',
    component: () => import(/*webpackChunkName: "notFound"*/ '@/views/NotFound.vue'),
    meta: {
      title: '404页面',
      hidden: true
    }
  }
]
